dot:function(x, y)
{
    var i = new Image();
    i.src = "";
    dd.images.dot = {loaded:false};
    i.onload = function()
    {
        dd.images.dot = this;
        dd.images.dot.loaded = true;
        dd.fn.canvas.drawImage(dd.images.dot, 0, 0, 10, 10, x, y, 10, 10);
    };
    
}
drawImage:function(image, x, y, width, height)
        {
            if(!width)
                width = image.width;
            if(!height)
                height = image.height;
            this.canvas.drawImage(image, 0, 0, width, height, x, y, width, height);
        },
        drawText:function(text, x, y)
        {
            dd(document.body).addElement({
                tag:"span",
                text:"lol"
            });
        },
        // Not supported yet
        getImageData:function(x, y)
        {
            var oDataSrc = this.canvas.getImageData(0,0,32,32);
            var aDataSrc = oDataSrc.data;
            var iOffset = y + (x-1)*4;
            
            var iR = aDataSrc[iOffset];
            var iG = aDataSrc[iOffset+1];
            var iB = aDataSrc[iOffset+2];
            dd("output").addElement({
                tag:"li",
                text:"color: " + iR + ", " + iG + ", " + iB
            });
        }